package com.ruoyi.camp.mapper;

import java.util.List;
import com.ruoyi.camp.domain.CampFacility;

/**
 * 营地设施Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
public interface CampFacilityMapper 
{
    /**
     * 查询营地设施
     * 
     * @param cfid 营地设施主键
     * @return 营地设施
     */
    public CampFacility selectCampFacilityByCfid(String cfid);

    /**
     * 查询营地设施列表
     * 
     * @param campFacility 营地设施
     * @return 营地设施集合
     */
    public List<CampFacility> selectCampFacilityList(CampFacility campFacility);

    /**
     * 新增营地设施
     * 
     * @param campFacility 营地设施
     * @return 结果
     */
    public int insertCampFacility(CampFacility campFacility);

    /**
     * 修改营地设施
     * 
     * @param campFacility 营地设施
     * @return 结果
     */
    public int updateCampFacility(CampFacility campFacility);

    /**
     * 删除营地设施
     * 
     * @param cfid 营地设施主键
     * @return 结果
     */
    public int deleteCampFacilityByCfid(String cfid);
    public int deleteCFacilityByCampId(String campid);
    /**
     * 批量删除营地设施
     * 
     * @param cfids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCampFacilityByCfids(String[] cfids);
}
